<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;  //导入Route类
/***************************************** Login ******************************************/
Route::rule('login/','index/login/login/');  //创建路由规则
Route::rule('checkMobile/','index/login/checkMobile/');
Route::rule('register/','index/Login/register');
Route::rule('setpwd/','index/Login/setpwd');
Route::rule('findPwdCheckMobile/','index/Login/findpwdCheckMobile');
Route::rule('findpwd/','index/login/findpwd/');
Route::rule('logout/','index/Login/logout');
/***************************************** Capital ******************************************/
Route::rule('capital/','index/Capital/capital/');
Route::rule('recharge/','index/Capital/recharge');
Route::rule('capitalcash/','index/Capital/capitalcash/');
Route::rule('capitalcash2/','index/Capital/capitalcash2/');
Route::rule('cash/','index/Capital/cash');
Route::rule('addBankCard/','index/Capital/addBankCard');
Route::rule('phoneValidate/','index/Capital/phoneValidate');
Route::rule('emailValidate/','index/Capital/emailValidate');
Route::rule('setPayPwd/','index/Capital/setPayPwd');
Route::rule('setPayPwd2/','index/Capital/setPayPwd2');
/***************************************** Comment ******************************************/
Route::rule('comment/','index/Comment/comment/');
Route::rule('addComment/','index/Comment/addComment/');
/***************************************** Coupons ******************************************/
Route::rule('coupons/','index/Coupons/coupons');
/***************************************** Goods ******************************************/
Route::rule('all/','index/Goods/all');
Route::rule('category/','index/Goods/category/');
Route::rule('goodsDetail/','index/Goods/detail');
/***************************************** Supplier ******************************************/
Route::rule('privider/','index/Supplier/privider/');
Route::rule('personal/','index/Supplier/personal/');
Route::rule('personal1/','index/Supplier/personal1/');
Route::rule('personal2/','index/Supplier/personal2/');
Route::rule('company/','index/Supplier/company/');
Route::rule('company1/','index/Supplier/company1/');
Route::rule('company2/','index/Supplier/company2/');
/***************************************** Guquan ******************************************/
Route::rule('guquanIndex/','index/Guquan/index/');
Route::rule('guquanDetail/','index/Guquan/detail');
/***************************************** Index ******************************************/
Route::rule('','index/index/index');
/***************************************** Order ******************************************/
Route::rule('confirm/','index/Order/confirm');
Route::rule('orderInfo/','index/Order/detail/');
Route::rule('lists/','index/Order/lists');
Route::rule('sendPay/','index/Order/sendPay');
Route::rule('orderalert2/','index/Order/orderalert2');
/***************************************** SmsSend ******************************************/
Route::rule('smsSendIndex/','index/SmsSend/index');
Route::rule('pay/','index/SmsSend/pay');
/***************************************** User ******************************************/
Route::rule('editPhone/','index/User/editPhone/');
Route::rule('editEmail/','index/User/editEmail/');
Route::rule('editUseName/','index/User/editUseName/');
Route::rule('info/','index/User/info/');
Route::rule('address/','index/User/address');
Route::rule('mycommend/','index/User/mycommend');
Route::rule('editshippingaddress/','index/User/editshippingaddress');
Route::rule('selectarea/','index/User/selectarea');
Route::rule('setting/','index/User/setting');
/***************************************** Zhongchuang ******************************************/
Route::rule('makerSpaceIndex/','index/Zhongchuang/index/');
Route::rule('makerSpaceDetail/','index/Zhongchuang/detail');
/***************************************** Zhucedizhi ******************************************/
Route::rule('registeredAddressIndex/','index/zhucedizhi/index');
Route::rule('registeredAddressDetail/','index/zhucedizhi/detail');
/***************************************** understandus ******************************************/
Route::rule('aboutUs/','index/understandus/aboutUs/');
/***************************************** Upload ******************************************/
Route::rule('uploadIndex/','index/Upload/index');
Route::rule('upload/','index/Upload/upload');
Route::rule('uploadAll/','index/Upload/uploadAll');
Route::rule('mkUploadDir/','index/Upload/mkUploadDir/');

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
//    'service/[:name]' => 'index/index',
];
